package cn.geminis.crypto.cert.service.controller;

import cn.geminis.crypto.cert.service.model.CertSignRequest;
import cn.geminis.crypto.cert.service.model.CertSignResponse;
import cn.geminis.crypto.cert.service.service.CertService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author puddi
 */
@RestController("/cert")
public class CertController {

    @Autowired
    private CertService certService;

    @PostMapping("/sign")
    public CertSignResponse sign(CertSignRequest request) {
        return this.certService.sign(request);
    }

}
